import request from '@/utils/request'

const api_name = '/species'

export default {
  getList() {
    return request({
      url: `${api_name}/list`,
      method: 'get'
    })
  },
  get(data) {
    return request({
      url: `${api_name}/get`,
      method: 'get',
      params: data
    })
  },
  add(data) {
    return request({
      url: `${api_name}/add`,
      method: 'post',
      data: data
    })
  },
  update(data) {
    return request({
      url: `${api_name}/update`,
      method: 'post',
      data: data
    })
  },
  delete(data) {
    return request({
      url: `${api_name}/delete`,
      method: 'post',
      data: data
    })
  }

}
